/**
 * Copyright (C) 2023 思创数码科技股份有限公司
 * <p/>
 * 版权所有
 * <p/>
 * 类名　　  : FinallyTest
 * 功能概要  :
 *
 * @author yangwk
 * @date 2024/8/13 13:55
 */
public class FinallyTest {
    public StringBuilder hello() {
        StringBuilder stringBuilder = new StringBuilder();
        StringBuilder stringBuilder2 = new StringBuilder();
        try {
            stringBuilder.append("1");
            int i = 1 / 0;
            return stringBuilder;
        } catch (Exception e) {
            throw e;
        } finally {
            stringBuilder2.append("2");
            return stringBuilder2;
        }
    }

    public static void main(String[] args) {
        System.out.println(new FinallyTest().hello());

    }
}
